<template lang="html">
  <div class="record_item">
    <div class="box">
      <div class="left">
        <h3>{{item.bank_name}} 尾号 {{item.bank_card_nu ? item.bank_card_nu.substr(-4) : ''}}</h3>
        <div class="author">
          <span>{{item.create_at}}</span>
        </div>
      </div>
      <div class="right">
        <div class="rebate_money">¥{{item.amount}}</div>
        <p :class="item.cash_status === 5 ? 'remake red' : 'remake'">{{remake}}</p>
      </div>
    </div>
    <div class="res" v-if="item.cash_status === 5 && item.cash_result">原因：{{item.cash_result}}</div>
  </div>
</template>

<script>

export default {
  props: ['item', 'item_type'],
  data () {
    return {
      remake: '审核中'
    }
  },
  created () {
    let remake = '审核中'
    switch (this.item.cash_status) {
      case 4:
        remake = '已到账'
        break
      case 5:
        remake = '提现失败'
        break
    }
    this.remake = remake
  },
  methods: {

  }
}
</script>

<style lang="css" scoped>
</style>
